import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:incidentmanager/app.dart';

import 'package:incidentmanager/blocs/simple_bloc_observer.dart';
import 'package:incidentmanager/common/data/api/api_client.dart';
import 'package:incidentmanager/common/data/network/http.dart';
import 'package:incidentmanager/common/data/repositories/authentication_repository.dart';
import 'package:incidentmanager/common/data/repositories/user_repository.dart';

void main() {
  Bloc.observer = SimpleBlocObserver();
  runApp(App(
    authenticationRepository: AuthenticationRepository(),
    userRepository: UserRepository(),
    httpClient: Http.getInstance(),
    apiClient: ApiClient.create(),
  ));
}
